MercadoPago\Woocommerce\Gateways\AbstractGateway A

Total Complexity 62
Dependencies 7
Dependents 18
Total lines 813
Lines of code 376
Logical lines of code 126
Comment lines 225
Methods 37
Properties 12

Methods 37

Method Rating Maintainability Complexity Lines of code
update_option()
S
55 5 20
processReturnFail()
S
52 4 24
addMissingCredentialsNoticeAsFormField()
S
54 3 21
loadMelidataStoreScripts()
S
56 3 20
process_payment()
S
55 3 19
getHomologValidateNoticeOrHidden()
S
55 2 21
processBlocksCheckoutData()
S
63 3 10
canAdminLoadScriptsAndStyles()
S
73 3 5
getFeeTitle()
S
61 2 13
registerDiscountAndCommissionFeesOnCart()
S
75 2 5
getAmount()
S
71 2 6
loadResearchComponent()
S
60 1 15
getCommissionField()
S
59 1 15
getDiscountField()
S
59 1 15
payment_scripts()
S
75 2 5
handleWithRejectPayment()
S
68 2 7
saveOrderPaymentsId()
S
65 2 9
getActionableValue()
S
68 2 7
registerCheckoutScripts()
S
62 1 14
generate_mp_actionable_input_html()
S
61 1 13
__construct()
S
60 1 13
getCheckoutName()
S
81 1 3
getFeeText()
S
74 1 4
isAvailable()
S
81 1 3
webhook()
S
70 1 6
validate_fields()
S
82 1 3
generate_mp_toggle_switch_html()
S
64 1 10
generate_mp_checkbox_list_html()
S
69 1 8
generate_mp_config_title_html()
S
65 1 10
payment_fields()
S
91 1 2
generate_mp_card_info_html()
S
65 1 10
generate_mp_preview_html()
S
65 1 10
generate_mp_support_link_html()
S
65 1 10
registerAdminScripts()
S
66 1 10
init_form_fields()
S
81 1 3
getRejectedPaymentErrorMessage()
S
75 1 4
get_settings_url()
S
80 1 3